<template>
  <div v-if="showShade" class="share-image" @click="showShade = false">
    <img :src="img" alt="" mode="widthFix">
  </div>
</template>

<script>
import Vue from 'vue'
  export default Vue.extend({
    name: 'share-image',
    data() {
      return {
        img: 'https://img.wifenxiao.com/h5-wfx/images/public/mmexport.xch2.png',
        showShade: false
      }
    }
  })
</script>

<style lang="scss">
  .share-image{
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 111111;
    text-align: right;
    // background: rgba(0, 0, 0, .6);
    background: rgba(0, 0, 0, .75);
    img{
      display:block;
      width:100%;
      height:auto;
    }
  }
</style>
